//
//  TwoViewController.m
//  AnimationDemo
//
//  Created by 马滕亚 on 2020/6/12.
//  Copyright © 2020 M.Y.A. All rights reserved.
//

#import "TwoViewController.h"
#import "CircleTransition.h"

@interface TwoViewController ()<UINavigationControllerDelegate>

@end

@implementation TwoViewController

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    self.navigationController.delegate = self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
//    layer.cornerRadius
}

- (IBAction)twoBtnClick:(id)sender {
    [self.navigationController popViewControllerAnimated:true];
//    [self dismissViewControllerAnimated:true completion:nil];
}

//- (id<UIViewControllerAnimatedTransitioning>)navigationController:(UINavigationController *)navigationController animationControllerForOperation:(UINavigationControllerOperation)operation fromViewController:(UIViewController *)fromVC toViewController:(UIViewController *)toVC {
//    if (operation == UINavigationControllerOperationPop) {
//        CircleTransition *transition = [[CircleTransition alloc] init];
//        return transition;
//    } else {
//        return nil;
//    }
//}



/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
